/**
 * @file ui_honeycomb.h
 * @author your name (you@domain.com)
 * @brief 
 * @version 0.1
 * @date 2024-04-06
 * 
 * @copyright Copyright (c) 2024
 * 
 */

#ifndef UI_HONEYCOMB_H
#define UI_HONEYCOMB_H

#include "frame.h"
#include "lvgl.h"

#ifdef __cplusplus
extern "C"
{
#endif

#define UI_HONEYCOMB_MAX_ITEM_NUM (100)

typedef struct ui_honeycomb
{
    lv_obj_t * parent;
    lv_obj_t * image[UI_HONEYCOMB_MAX_ITEM_NUM];
    lv_point_t init_pos[UI_HONEYCOMB_MAX_ITEM_NUM];
    lv_point_t point_final;
    int cur_index;
}ui_honeycomb_t;

ui_honeycomb_t *ui_honeycomb_create(lv_obj_t *parent);

//add image item to honeycomb, need set image by self
bool ui_honeycomb_add(ui_honeycomb_t *honeycomb, lv_obj_t *img_item);

#ifdef __cplusplus
}
#endif

#endif